@extends('Admin.base')
@section('css')
    <link rel="stylesheet" href="/Admin/layuiadmin/css/extend/formSelects-v4.css" media="all">
    <style>
        .table td{
            width :400px;}
    </style>
@endsection
@section('content')

    <div class="layui-card">
        <div class="layui-card-body">
            <legend>订单信息</legend>
            <br>
            <table class="table" >
                <tr>
                    <td> 商品名称：  </td>
                    <td>
                        @foreach($goods as $v)
                            <img src="{{$v->photo}}" alt="" width="50px" height="50">  {{$v->goods_name}}   ✖️ {{$v->amount}}  <br>
                        @endforeach
                    </td>
                </tr>
                <tr>
                    <td>收货人姓名：</td>
                    <td> {{$order->user_name}}</td>
                </tr>
                <tr>
                    <td> 订单编号：    </td>
                    <td> {{$order->online_order}}</td>
                </tr>
                <tr>
                    <td>邮寄状态：   </td>
                    <td>
                        @if($order->send_type == 1 )
                            邮寄中
                        @elseif($order->send_type !=2)
                            待邮寄
                        @else
                            待自取
                        @endif
                    </td>
                </tr>
                <tr>
                    <td>邮寄总质量：  </td>
                    <td>{{$order->total_weight}}</td>
                </tr>
                <tr>
                    <td>  邮寄费用：</td>
                    <td> {{round($order->postage,2)}}元</td>
                </tr>
                <tr>
                    <td> 快递名称:</td>
                    <td> {{ array_key_exists($order->express_name,\App\Models\Order::EXPRESS) ? \App\Models\Order::EXPRESS[$order->express_name] :""}}</td>
                </tr>
                <tr>
                    <td>快递单号：</td>
                    <td>{{$order->express_order}}</td>
                </tr>
                <tr>
                    <td>快递到达位置：</td>
                    <td></td>
                </tr>

            </table>

        </div>
    </div>
@endsection
@section('script')

@endsection